package oop;

public class Employee {
    private String name;
    private int birthmonth;
    public Employee(String name,int birthmonth){
        this.name=name;
        this.birthmonth=birthmonth;
    }
    public void setName(String name){
        this.name=name;
    }
    public String getName(){
        return name;
    }
    public void setBirthmonth(int birthmonth){
        this.birthmonth=birthmonth;
    }
    public int getBirthmonth(){
        return birthmonth;
    }
    public double getSalary(int month){
        double salary=0;
        if(month==birthmonth){
            salary+=100;
        }
        return salary;
    }
}
